import { createRouter, createWebHistory } from 'vue-router'
import TeacherManagement from '@/views/TeacherManagement.vue'
import ExamManagement from '@/views/ExamManagement.vue'
import ScheduleManagement from '@/views/ScheduleManagement.vue'
import ExportManagement from '@/views/ExportManagement.vue'

const routes = [
  {
    path: '/',
    redirect: '/teachers'
  },
  {
    path: '/teachers',
    name: 'Teachers',
    component: TeacherManagement
  },
  {
    path: '/exams',
    name: 'Exams',
    component: ExamManagement
  },
  {
    path: '/schedule',
    name: 'Schedule',
    component: ScheduleManagement
  },
  {
    path: '/export',
    name: 'Export',
    component: ExportManagement
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
